//
//  CCUIViewController.m
//  CCFC_IPHONE
//
//  Created by  xuchen(陈旭)， xichen(陈曦)， qq：511272827 on 10-11-18.
//  Copyright 2010 cc_team. All rights reserved.
//

#include "CCAll.h"

#ifdef	OBJC_MACRO
#import "CCUIViewController.h"

// 打开模态视图控制器
void showModalViewController(UIViewController *mainViewCtroller, 
							 UIViewController *modalViewCtroller,
							 BOOL isAnimated)
{
	assert(mainViewCtroller && modalViewCtroller);
	
	[mainViewCtroller presentModalViewController:modalViewCtroller animated:isAnimated];
}

// 以一定的展现方式打开模态视图控制器
void showModalViewControllerByStyle(UIViewController *mainViewCtroller, 
								UIViewController *modalViewCtroller,
								BOOL isAnimated,
								UIModalTransitionStyle transStyle)
{
	assert(mainViewCtroller && modalViewCtroller);
	
	modalViewCtroller.modalTransitionStyle = transStyle;

	showModalViewController(mainViewCtroller, modalViewCtroller, isAnimated);
}

@implementation CCUIViewController

@end

#endif	//OBJC_MACRO
